<?php 
    $baseUrl = Yii::app()->request->baseUrl;
    $config = Config::model()->findByPk(1);
?>
<!DOCTYPE html>
<html class="html">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta content="<? echo CHtml::encode($config->description)  ?>"
        name="description" />
    <meta content="<? echo CHtml::encode($config->keywords)  ?>"
        name="keywords" />
    <link rel="icon" href="<?php echo Yii::app()->request->baseUrl; ?>/favicon.gif" type="image/gif" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/style.css" />
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/scripts/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/scripts/jquery.ui.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/scripts/zcommon.js"></script>
    
    <script type="text/javascript">
        jQuery(document).ready(function () { AcerUi.init(); });
    </script>
    <title><?php echo CHtml::encode($config->sitename); echo CHtml::encode(($this->pageTitle!=' ')?' - '.$this->pageTitle:''); ?></title>
</head>
<body class="body">
    
    <div class="row">
        <header>
            <div class="header">
                <div class="social-link">
                    <a href="<? echo CHtml::encode($config->facebook)  ?>" target="_blank"><span class="facebook"></span>
                    </a><a href="<? echo CHtml::encode($config->youtube)  ?>" target="_blank"><span class="youtube">
                    </span></a>
                </div>
                <div class="logo">
                    <a href="<? echo $baseUrl.'/' ?>" title="Home page">
                        <?php echo CHtml::image(Yii::app()->baseUrl."/protected/uploads/images/".$config->logo, "logo-wicell", array('class'=>'normal', 'title'=>Yii::app()->name)); ?>
                        <?php echo CHtml::image(Yii::app()->baseUrl."/protected/uploads/images/".$config->logo, "logo-wicell", array('class'=>'small', 'title'=>Yii::app()->name)); ?>
                    </a>
                    
                </div>
                <nav>
                    <a id="showNavigationButton" class="hidden-element btnShowMenu" href="#1" title="Navigation">
                        Navigation</a>
                    <ul id="mainMenu" class="main-menu">
                        <li><a href="<? echo $baseUrl ?>/product" title="Products" data-sub="false">Products</a></li>
                        <li><a href="<? echo $baseUrl ?>/solution" title="Solutions" data-sub="false">Solutions</a></li>
                        <li><a href="#" title="Support" data-sub="true">Support</a></li>
                        <li><a href="<? echo $baseUrl ?>/site/contact" title="Contact us" data-sub="false">Contact us</a></li>
                    </ul>
                </nav>
                <div class="content-submenu">
                    <ul>
                        <li><a href="#">All Products</a></li>
                    </ul>
                    <ul>
                        <li><a href="#">Antenna</a></li>
                    </ul>
                    <ul>
                        <li><a href="#">Access point</a></li>
                    </ul>
                    <ul>
                        <li><a href="#">Accessories</a></li>
                    </ul>
                    <a class="close" href="#1">Collapse</a>
                </div>
                <!-- content-submenu-->
                <div class="content-submenu">
                    <a class="close" href="#1">Collapse</a>
                </div>
                <!-- Content-submenu -->
                <div class="content-submenu">
                    <ul>
                        <li><a href="#">Documents</a></li>
                    </ul>
                    <ul>
                        <li><a href="#">Downloads</a></li>
                    </ul>
                    <ul>
                        <li><a href="<? echo $baseUrl ?>/site/faq" title="FAQ">FAQ</a></li>
                    </ul>
                    <a class="close" href="#1">Collapse</a>
                </div>
                <!--Content-submenu -->
                <div class="content-submenu">
                    <ul>
                    </ul>
                    <a class="close" href="#1">Collapse</a>
                </div>
                <!--Content-submenu -->
            </div>
        </header>
    </div>
    <?php echo $content ?>
    
    <div class="row dark-gray">
        <footer>
            <div class="footer">
                <a class="go-top" href="#top">Go to top</a>
                <p class="sx">
                    &COPY; 2013 Wicell Inc.
                    <nav>
                        <p class="legacy-nav dx">
                            <a href="#" title="About Wicell">About Wicell</a> | <a href="<? echo $baseUrl ?>/solution" title="Solutions">Solutions</a>| <a href="<? echo $baseUrl ?>/product" title="Products">Products</a>| <a href="<? echo $baseUrl ?>/site/contact" title="Contact">Contact</a>
                            | <a href="<? echo $baseUrl ?>/site/faq" title="FAQ">FAQ</a> | <a href="#" title="Downloads">Downloads</a>
                        </p>
                    </nav>
            </div>
        </footer>
    </div>
    <!-- row -->
</body>
</html>
